<?php if (!defined('THINK_PATH')) exit(); /*a:1:{s:76:"D:\phpStudy\WWW\watch\public/../application/sports_admin\view\admin\add.html";i:1543365886;}*/ ?>
<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <script src="/static/js/jquery.js"></script>
    <script src="/static/layui/layui.js"></script>
    <link rel="stylesheet" href="/static/layui/css/layui.css">
    <script type="text/javascript" src="/static/x-admin/js/xadmin.js"></script>
    <link rel="stylesheet" href="/static/x-admin/css/font.css">
    <link rel="stylesheet" href="/static/x-admin/css/xadmin.css">
</head>
<body>
<div class="x-nav">
      <span class="layui-breadcrumb">
        <a href="<?php echo url('/admin/index'); ?>">管理员列表</a>
        <a href="">添加管理员</a>
      </span>
    <a class="layui-btn layui-btn-small" style="line-height:1.6em;margin-top:3px;float:right" href="javascript:location.replace(location.href);" title="刷新">
        <i class="layui-icon" style="line-height:30px">ဂ</i></a>
</div>
<div style="height: 30px"></div>
<div style="width: 500px;font-size: 10px">
    <form class="layui-form" action="" onsubmit="return false" id = 'adminAdd'>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员姓名</label>
            <div class="layui-input-block">
                <input type="text" name="title"   placeholder="请输入管理员姓名" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员手机号</label>
            <div class="layui-input-block">
                <input type="text" name="title"   placeholder="请输入管理员手机号" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">管理员密码</label>
            <div class="layui-input-block">
                <input type="password" name="password"   placeholder="请输入管理员密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">确认密码</label>
            <div class="layui-input-block">
                <input type="password" name="password"  placeholder="确认密码" autocomplete="off" class="layui-input">
            </div>
        </div>
        <div class="layui-form-item">
            <label class="layui-form-label">权限分配</label>
            <div class="layui-input-block">
                <input type="radio" name="sex" value="users" title="会员管理">
                <input type="radio" name="sex" value="resources" title="资源管理" >
            </div>
        </div>
        <div class="layui-form-item">
            <div class="layui-input-block">
                <button class="layui-btn" >立即提交</button>
                <button type="reset" class="layui-btn layui-btn-primary">重置</button>
            </div>
        </div>
    </form>
</div>
<script>
    //表单初始化
    layui.use('form', function(){
        var form = layui.form;
    });
</script>
<script>
    //手机号正则
    var isMobile = /^((13[0-9])|(14[5|7])|(15([0-3]|[5-9]))|(18[0,5-9]))\d{8}$/;
    //密码正则  只能输入6-20个字母、数字、下划线
    var patrn = /^(\w){6,20}$/;
</script>
</body>
</html>